find the element that appears once while rest of the elements occur thrice